import threading
import time


def sing(msg):
    while True:
        print(threading.currentThread().getName(), msg)
        time.sleep(1)


def dance(msg):
    while True:
        print(threading.currentThread().getName(), msg)
        time.sleep(1)


if __name__ == '__main__':
    # threading.Thread(target=sing, args=('唱歌...',), daemon=True).start()
    # time.sleep(0.5)
    # threading.Thread(target=dance, args=('跳舞...',), daemon=True).start()
    # print(threading.currentThread().getName())
    # time.sleep(6)
    import re
    # s = "python java c++ basic python"
    # res = re.findall("python2", s)
    r="^[1-9][0-9]{4,10}$"
    s="012345678"

    print(re.findall(r,s))

    import concurrent.futures
    executor = concurrent.futures.ThreadPoolExecutor(max_workers=5)
